package cn.jsc.order.service;

import cn.jsc.basic.service.IBaseService;
import cn.jsc.basic.util.PageList;
import cn.jsc.order.domain.AdoptOrder;
import cn.jsc.order.query.AdoptOrderQuery;
import cn.jsc.user.domain.LoginInfo;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

public interface IAdoptOrderService extends IBaseService<AdoptOrder> {
    /**
     * 领养宠物
     * @param params
     * @param loginInfo
     * @return
     */
    String adoptOrdersubmit(Map<String, Object> params, LoginInfo loginInfo);

    /**
     * 管理员查询领养订单
     * @param query
     * @param request
     * @return
     */
    PageList<AdoptOrder> admin(AdoptOrderQuery query, HttpServletRequest request);

    /**
     * 用户查询领养订单
     * @param query
     * @param request
     * @return
     */
    PageList<AdoptOrder> user(AdoptOrderQuery query, HttpServletRequest request);
}
